package org.easymis.crm.modules.system.service.impl;

import java.util.HashMap;
import java.util.List;

import org.easymis.crm.modules.system.entitys.mybatis.dto.OrganizeRole;
import org.easymis.crm.modules.system.entitys.mybatis.mapper.OrganizeRoleMapper;
import org.easymis.crm.modules.system.service.OrganizeRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class OrganizeRoleServiceImpl implements OrganizeRoleService {
	@Autowired
	OrganizeRoleMapper roleMapper;
	@Override
	public List<OrganizeRole> getList(OrganizeRole bean) {
		HashMap<String, Object> params = new HashMap<String, Object>();
		return roleMapper.getList(params);
	}

	@Override
	public void save(OrganizeRole bean) {
		// TODO Auto-generated method stub
		roleMapper.save(bean);
	}

	@Override
	public void saveBatch(List<OrganizeRole> beans) {
		// TODO Auto-generated method stub
		roleMapper.saveBatch(beans);
	}

	@Override
	public void update(OrganizeRole bean) {
		// TODO Auto-generated method stub
		roleMapper.update(bean);
	}

	@Override
	public void delete(String roleId) {
		// TODO Auto-generated method stub
		roleMapper.delete(roleId);
	}

	@Override
	public OrganizeRole findById(String roleId) {
		// TODO Auto-generated method stub
		return roleMapper.findById(roleId);
	}

}
